package com.wukaige.order.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author wukaige
 * @since 2021-05-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("ordergoods")
public class Ordergoods implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 商品id
     */
    @TableField("gid")
    private Integer gid;

    /**
     * 订单id
     */
    @TableField("oid")
    private String oid;

    /**
     * 商品数量
     */
    @TableField("gnumber")
    private Integer gnumber;

    /**
     * 商品小计
     */
    @TableField("gnumber")
    private Integer gsum;
}
